package com.yzkj.cpjxc.business.constants;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 用户静态常量类
 */
public class SysUserConstants {

	/**
	 * 该系统用户名称已经存在
	 */
	public final static String USERNAME_EXISTS = "该系统用户名称已经存在";

	/**
	 * 该身份证已被使用
	 */
	public final static String IDCARDNO_EXISTS = "该身份证已被使用";

	/**
	 * 状态：启用
	 */
	public final static String USER_STATUS_NORMAL = "1";

	/**
	 * 状态：停用
	 */
	public final static String USER_STATUS_DISABLE = "-1";

	/**
	 * 用户状态Map
	 */
	public static Map<String, String> getUserStatusMap() {
		HashMap<String, String> map = new LinkedHashMap<String, String>();
		map.put(USER_STATUS_NORMAL, "启用");
		map.put(USER_STATUS_DISABLE, "停用");
		return map;
	}

	/**
	 * 删除标记：删除
	 */
	public final static String USER_DELETE_FLAG_DELETE = "1";

	/**
	 * 删除标记：不删除
	 */
	public final static String USER_DELETE_FLAG_NODELETE = "-1";

	public static final String UNITID_EXISTS = "该单位已存在相应的绑定用户,请检查单位信息是否选错";

	/**
	 * 用户删除标志Map
	 */
	public static Map<String, String> getUserDeleteFlagMap() {
		HashMap<String, String> map = new LinkedHashMap<String, String>();
		map.put(USER_DELETE_FLAG_DELETE, "删除");
		map.put(USER_DELETE_FLAG_NODELETE, "不删除");
		return map;
	}

}
